﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace MyFirstWpfProject
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Welcome!");
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            MessageBox.Show("Goodbye!");
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
        //    MessageBox.Show(textBox.Text);
        }

        private void Button_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
        //    MessageBox.Show(sender.ToString());
            //e.Handled = false;
        }

        private void Grid_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
         //   MessageBox.Show(sender.ToString());
        }

        private void TextBlock_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
        //   MessageBox.Show(sender.ToString());
        }

        private void Image_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
        //    MessageBox.Show(sender.ToString());
        }

        private void textBox_PreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
        //    MessageBox.Show(sender.ToString());
        }

        private void Image_MouseUp(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show(sender.ToString());
        }

        private void Grid_MouseUp(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show(sender.ToString());
        }

        private void Button_MouseUp(object sender, MouseButtonEventArgs e)
        {
            MessageBox.Show(sender.ToString());
        }

 
    }
}
